package com.rd.student.jiaji.class4.suyan.zrrd.day091;

public class HideTest {
    public static void main(String[] args){
        Son son =new Son();
        System.out.println(son.tag);
        System.out.println(((Parent)son).tag);//调用父类的方法

    }
}

class Parent{
    public String tag="parent";
}

class Son extends Parent{
    public  String tag="son";
}
